package com.ptjob.basecore.base.threadpool;/** * 线程池工厂 * */public class ClientThreadPoolFactory {		/**	 * 默认配置	 * */	private static final ThreadPoolOptions defaultOptions = new ThreadPoolOptions();		static{		defaultOptions.setPriority(Thread.NORM_PRIORITY);		defaultOptions.setSize(10);		defaultOptions.setWaitPeriod(100);		defaultOptions.setReplayFailTask(false);	}		public static ClientBaseThreadPool create(ThreadPoolOptions options){		return initialize(options);	}		private static ClientBaseThreadPool initialize(ThreadPoolOptions options){		if(options == null){			options = defaultOptions ;		}		ClientBaseThreadPool threadPool = new ClientBaseThreadPool(options);		return threadPool ;	}}